package handlers;

import model.InteractionManager;
import entity.*;

public class AvatarMvtHandler extends MvtHandler {
    
    public AvatarMvtHandler(Entity toMove) {
        super(toMove);
    }

    public void doInteract(Entity entity) {
    	WorldNPC npc = (WorldNPC) entity;
    	if(!npc.getFriendly()) {
    		NPCInteractionHandler intHandler = new NPCInteractionHandler(npc);
        	InteractionManager manager = InteractionManager.getInstance();
        	manager.setHandler(intHandler);
    	}
    	else {
    		System.out.println("Friendly NPC");
    	}
    }
    
    
}
